<div class="top-banner-out" {% if bg_status %}style="background: {{ bg_color }}"{% endif %}>
  <div class="container">
    <div class="top-banner-content">
      {% if link %}
        <a href="{{ link }}" target="_blank">
      {% endif %}
      <img src="{{ image }}" class="img-responsive">
      {% if link %}
        </a>
      {% endif %}
      <i class="iconfont del-banner">&#xe609;</i>
    </div>
  </div>
</div>
<script type="text/javascript">
  $(document).on('click', '.del-banner', function () {
    var $this = $(this);
    $this.parent('.top-banner-content').slideUp(100, function () {
     $this.parent('.top-banner-content').parent('div').parent('div').remove();
    });
  });
</script>